<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var t;
			function showTime(){
				var d=new Date();
				//document.write(d.toLocaleString());
				document.getElementById("time").innerHTML=d.toLocaleString();
				
			}
			function winInit(){
				showTime();
				t=window.setInterval("showTime()",1000);
			} 
			function stopTimer(){
				window.clearInterval(t);
			}
		</script>
	</head>
	<body onload="winInit()">
		<div id="time"></div>
		<input type="button" value="停止" onclick="stopTimer()"/>
		
		<a href="js9.html">走</a>
	</body>
	 
</html>
